{"project":"code_editor","branch":"main","commit":"29c0b2d7e1c9574896e2be0620101d7dc0ec5a9f","component":{"name":"HomePage","nodes":{"root":{"tag":"div","type":"element","children":["qUZX5B_obx9JdrREoZr8I"],"classes":{"flHWU":{"formula":{"type":"value","value":true}}},"customProperties":{}},"-4qyT4kDwjO9hKEcL8NGa":{"tag":"td","type":"element","children":["eHPw8hL9xMU_xa56tZBid"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"0U8Sck98ScTG9wyNMRhhf":{"type":"text","value":{"type":"value","value":"\nThe action id you want to run. One of:\n\n  \"actions.find\",\n  \"actions.findWithSelection\",\n  \"cursorRedo\",\n  \"cursorUndo\",\n  \"deleteAllLeft\",\n  \"deleteAllRight\",\n  \"editor.action.addCommentLine\",\n  \"editor.action.addCursorsToBottom\",\n  \"editor.action.addCursorsToTop\",\n  \"editor.action.addSelectionToNextFindMatch\",\n  \"editor.action.addSelectionToPreviousFindMatch\",\n  \"editor.action.blockComment\",\n  \"editor.action.clipboardCopyWithSyntaxHighlightingAction\",\n  \"editor.action.commentLine\",\n  \"editor.action.copyLinesDownAction\",\n  \"editor.action.copyLinesUpAction\",\n  \"editor.action.deleteLines\",\n  \"editor.action.detectIndentation\",\n  \"editor.action.duplicateSelection\",\n  \"editor.action.fontZoomIn\",\n  \"editor.action.fontZoomOut\",\n  \"editor.action.fontZoomReset\",\n  \"editor.action.formatDocument\",\n  \"editor.action.formatSelection\",\n  \"editor.action.gotoLine\",\n  \"editor.action.goToReferences\",\n  \"editor.action.indentationToSpaces\",\n  \"editor.action.indentationToTabs\",\n  \"editor.action.indentLines\",\n  \"editor.action.indentUsingSpaces\",\n  \"editor.action.indentUsingTabs\",\n  \"editor.action.inPlaceReplace.down\",\n  \"editor.action.inPlaceReplace.up\",\n  \"editor.action.insertCursorAbove\",\n  \"editor.action.insertCursorAtEndOfEachLineSelected\",\n  \"editor.action.insertCursorBelow\",\n  \"editor.action.insertLineAfter\",\n  \"editor.action.insertLineBefore\",\n  \"editor.action.inspectTokens\",\n  \"editor.action.joinLines\",\n  \"editor.action.jumpToBracket\",\n  \"editor.action.marker.next\",\n  \"editor.action.marker.nextInFiles\",\n  \"editor.action.marker.prev\",\n  \"editor.action.marker.prevInFiles\",\n  \"editor.action.moveCarretLeftAction\",\n  \"editor.action.moveCarretRightAction\",\n  \"editor.action.moveLinesDownAction\",\n  \"editor.action.moveLinesUpAction\",\n  \"editor.action.moveSelectionToNextFindMatch\",\n  \"editor.action.moveSelectionToPreviousFindMatch\",\n  \"editor.action.nextMatchFindAction\",\n  \"editor.action.nextSelectionMatchFindAction\",\n  \"editor.action.onTypeRename\",\n  \"editor.action.openLink\",\n  \"editor.action.outdentLines\",\n  \"editor.action.peekDefinition\",\n  \"editor.action.previousMatchFindAction\",\n  \"editor.action.previousSelectionMatchFindAction\",\n  \"editor.action.quickCommand\",\n  \"editor.action.quickFix\",\n  \"editor.action.quickOutline\",\n  \"editor.action.refactor\",\n  \"editor.action.referenceSearch.trigger\",\n  \"editor.action.reindentlines\",\n  \"editor.action.reindentselectedlines\",\n  \"editor.action.removeCommentLine\",\n  \"editor.action.rename\",\n  \"editor.action.revealDefinition\",\n  \"editor.action.revealDefinitionAside\",\n  \"editor.action.selectHighlights\",\n  \"editor.action.selectToBracket\",\n  \"editor.action.setSelectionAnchor\",\n  \"editor.action.showAccessibilityHelp\",\n  \"editor.action.showContextMenu\",\n  \"editor.action.showDefinitionPreviewHover\",\n  \"editor.action.showHover\",\n  \"editor.action.smartSelect.expand\",\n  \"editor.action.smartSelect.shrink\",\n  \"editor.action.sortLinesAscending\",\n  \"editor.action.sortLinesDescending\",\n  \"editor.action.sourceAction\",\n  \"editor.action.startFindReplaceAction\",\n  \"editor.action.toggleHighContrast\",\n  \"editor.action.toggleTabFocusMode\",\n  \"editor.action.transformToLowercase\",\n  \"editor.action.transformToTitlecase\",\n  \"editor.action.transformToUppercase\",\n  \"editor.action.transpose\",\n  \"editor.action.transposeLetters\",\n  \"editor.action.triggerParameterHints\",\n  \"editor.action.triggerSuggest\",\n  \"editor.action.trimTrailingWhitespace\",\n  \"editor.action.wordHighlight.trigger\",\n  \"editor.fold\",\n  \"editor.foldAll\",\n  \"editor.foldAllBlockComments\",\n  \"editor.foldAllMarkerRegions\",\n  \"editor.foldLevel1\",\n  \"editor.foldLevel2\",\n  \"editor.foldLevel3\",\n  \"editor.foldLevel4\",\n  \"editor.foldLevel5\",\n  \"editor.foldLevel6\",\n  \"editor.foldLevel7\",\n  \"editor.foldRecursively\",\n  \"editor.toggleFold\",\n  \"editor.unfold\",\n  \"editor.unfoldAll\",\n  \"editor.unfoldAllMarkerRegions\",\n  \"editor.unfoldRecursively\"\n\n"}},"1TBUE-8eDGgsB-k5kUMuf":{"tag":"td","type":"element","children":["X71mN--XZ6uIoT8x6B34-"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"1_WPARSl5Mi58tGPbjrsM":{"tag":"tr","type":"element","children":["2WeHWmFzGvomOtcxqjNIE","r3pGfnNLKHOT5tsPFAv0J"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"1sfhkWSleY5piyHFmzV5X":{"tag":"span","type":"element","children":["gv58ubhBpIWoQxxy9RXwG"],"classes":{"cBiGKA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2IQpny-nF4GKb5QxrEF9i":{"tag":"div","type":"element","children":["zLPUXTO4t1V8nXLsoLC5D","wEPHtPu-10kQb4Y3JiXTK"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2WeHWmFzGvomOtcxqjNIE":{"tag":"td","type":"element","children":["qzGEQXKRD6n3XmGYpLKFM"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2ZCVX3MRieOIu7uaCiD5d":{"tag":"tr","type":"element","children":["UXj7FH97Svp-ihtSTZtsl","Ztc9VXjZ5qxZUOWuu2k6d"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2x2URyCKk3z4UOQltAjF1":{"tag":"h3","type":"element","children":["bOFjWvUzS99RqjtqEf5Oo"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"3oHezHJm19AmF4CE1t7Dt":{"tag":"h4","type":"element","children":["kO-Rg5G5RChh7_Gs1pg37"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"4TP_G5P2FGktiilCoyt74":{"type":"text","value":{"type":"value","value":"change"}},"4aCCLWljBLqs-RW1nhVjl":{"type":"text","value":{"type":"value","value":"construction-options"}},"4ngmTX8Hx2w94cNwLdwYO":{"tag":"div","type":"element","children":["KepuGQzicaLyMSoC576oP","A05hPzaxx-meGdWHuewju"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"549kxYoVeCLCRyix9-XJ-":{"type":"text","value":{"type":"value","value":"Users can run actions on the code-editor by pressing F1. The same actions can be run programatically with this action. This is particularly useful for formatting on blur etc."}},"5Etyq68ELYvY1p-scopej":{"type":"text","value":{"type":"value","value":"default"}},"5KCJv04o3JdJ9UQD0R3HA":{"type":"text","value":{"type":"value","value":"args"}},"5VXI10fDLyokFAt5usVY7":{"type":"text","value":{"type":"value","value":"Slots"}},"5mhXx1oatQpGBFuF7hhGA":{"type":"text","value":{"type":"value","value":"Link"}},"616n7TVOO6f-PV1o3Ttcf":{"tag":"section","type":"element","children":["rPritJtWLr5om5Mf7ZQl4","dPIDQY2NRCodcOF5VifV1"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"63WxuvVpHZxtj6Ci0Hxf-":{"tag":"button","type":"element","events":{"click":{"actions":[{"name":"runCodeEditorAction","events":{"error":{"actions":[{"name":"@toddle/logToConsole","arguments":[{"name":"Label","formula":null},{"name":"Data","formula":{"path":["Event"],"type":"path"}}]}],"trigger":"error"}},"version":2,"exported":true,"arguments":[{"name":"id","formula":{"type":"value","value":""}},{"name":"action","formula":{"type":"value","value":"editor.action.formatDocument"}},{"name":"args","formula":{"type":"value","value":""}}],"handlerRaw":"/**\n * @param {Args} args\n * @param {Ctx} ctx\n */\nfunction runCodeEditorAction ({id, action, args}, ctx) {\n  const el = ctx.root.querySelector(`[code-editor][data-id=\"${id}\"]`);\n  if(!el) {\n    ctx.triggerActionEvent(\"error\", \"No code editor found with id \" + id)\n    return;\n  }\n  const editor = el.monacoEditor;\n  if(!editor) {\n    ctx.triggerActionEvent(\"error\", \"Editor not yet initialized\")\n    return;\n  }\n  const codeAction = editor.getAction(action);\n  if(!codeAction) {\n    ctx.triggerActionEvent(\"error\", \"No action exist with name '\" + action + \"'. Allowed actions are: \" + editor.getSupportedActions().map((a) => a.id).join(\", \"))\n    return;\n  }\n\n  codeAction.run(args)\n}"}],"trigger":"click"}},"children":["tWoBbUDkMkgLhks7CITnq"],"classes":{"dBViEH":{"formula":{"type":"value","value":true}}},"customProperties":{}},"6HOmzTI4e_XEKfsdZwpy-":{"tag":"table","type":"element","children":["hfmarTXU9ZGAcNShDhsvg","Y-CBPpovQcbMLFqP4YYRZ"],"classes":{"bcLiyJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"6LCoQza2_RyjPda9XbylR":{"type":"text","value":{"type":"value","value":"The modified value."}},"6j_62LmhVd8p_ol4p_-ky":{"tag":"td","type":"element","children":["c-xjypetoeCGEuwG6J-JP"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"7c7x4U4dAOiSdB_EUmtk6":{"type":"text","value":{"type":"value","value":"The code editor works best uncontrolled. Instead of keeping the value synchronised from a higher order component, it is best to simply let the code editor update itself, unless you strictly need to change the value programatically."}},"7fdfwaems7Galwfvx-8Hw":{"tag":"div","type":"element","children":["8iuRg8qWpANFZynYVowto","jQLTpsm30HW6RNGWxJS62"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"86OVex-hqeAHGGEH3xVqs":{"tag":"tr","type":"element","children":["nqZSPEckHQjF8hyR7xqnD","mqwX_tRaHEvkKlYfjhYDW"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"8JMmh1JG6yvg9WglgEwJc":{"tag":"div","type":"element","children":["gKOdXbW-on_939JSdA1t-"],"classes":{"bCauLL":{"formula":{"type":"value","value":true}}},"customProperties":{}},"8LbmkO-RQuCjpDF17i6FJ":{"tag":"td","type":"element","children":["6LCoQza2_RyjPda9XbylR"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"8iuRg8qWpANFZynYVowto":{"tag":"h4","type":"element","children":["UC0AGFk_Y2p6NHWg1Iz93"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"8kawI76Hrf-MGZz4x14Pn":{"tag":"td","type":"element","children":["zXnLaYJqFYeuwRTsGskqD"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"9671QAJdfkRVxfWwyCPJF":{"tag":"tr","type":"element","children":["_yExy_vQkSjUbSwX8785e","ammryM0NkyewPaSP4E5T_"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"97AIeoMEojM4Jv-ILW6I6":{"type":"text","value":{"type":"value","value":"Optional array of arguments for the action."}},"9LbrfR1P6_QqbDCZfPb8f":{"tag":"tr","type":"element","children":["nN3IvkTPBqVdbZz4za5Q7","pxiDMUjfk7Q5Y0ejzEQjy"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"9ZDOZaHAZ-8nj7fpzvQ75":{"name":"code-diff-editor","type":"component","attrs":{"id":{"type":"value","value":"demo-3"},"language":{"type":"value","value":"javascript"},"lib-source":{"path":["Variables","Initial lib source"],"type":"path"},"orig-value":{"path":["Variables","Initial value"],"type":"path"},"modified-value":{"path":["Variables","Modified value"],"type":"path"}},"customProperties":{}},"9oIx85CQbo4WLxfxbfEQO":{"tag":"td","type":"element","children":["X4r0557SvsSbMwwtOaiZz"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"A05hPzaxx-meGdWHuewju":{"tag":"table","type":"element","children":["86OVex-hqeAHGGEH3xVqs"],"classes":{"bcLiyJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"AFW8VLzU4ITbgR1IU5uiR":{"tag":"td","type":"element","children":["4aCCLWljBLqs-RW1nhVjl"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"AHujgPv4gpDA-Q3COAeFl":{"tag":"td","type":"element","children":["E3knp8oZ3X8OmH8DPgNSN"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"AJn8oLOshTvuSYKsazpU-":{"tag":"div","type":"element","children":["3oHezHJm19AmF4CE1t7Dt","IhjF8Z0vTvf-CfpUyrHDG"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"B6gXFH9os8qPmymY_SxN-":{"tag":"td","type":"element","children":["pWJTjXAP9jyXUgHHT1yTg"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"BDxkVibKh_JsvnuI6AC_b":{"tag":"a","type":"element","attrs":{"href":{"type":"value","value":"https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.IStandaloneEditorConstructionOptions.html"},"target":{"type":"value","value":"_blank"},"data-prerender":{"type":"value","value":"moderate"}},"children":["5mhXx1oatQpGBFuF7hhGA"],"classes":{"dpmcUT":{"formula":{"type":"value","value":true}}},"customProperties":{}},"BQ-n7wd8T4QYRaRpDGqdp":{"type":"text","value":{"type":"value","value":"Construction Options object parsed into the monaco editor. Refer to the monaco editor docs for more info."}},"BsSWY3FQnCvmXKKe-UHNo":{"tag":"button","type":"element","events":{"click":{"actions":[{"name":"runCodeEditorAction","events":{"error":{"actions":[{"name":"@toddle/logToConsole","arguments":[{"name":"Label","formula":null},{"name":"Data","formula":{"path":["Event"],"type":"path"}}]}],"trigger":"error"}},"version":2,"exported":true,"arguments":[{"name":"id","formula":{"type":"value","value":""}},{"name":"action","formula":{"type":"value","value":"editor.action.formatDocument"}},{"name":"args","formula":{"type":"value","value":""}}],"handlerRaw":"/**\n * @param {Args} args\n * @param {Ctx} ctx\n */\nfunction runCodeEditorAction ({id, action, args}, ctx) {\n  const el = ctx.root.querySelector(`[code-editor][data-id=\"${id}\"]`);\n  if(!el) {\n    ctx.triggerActionEvent(\"error\", \"No code editor found with id \" + id)\n    return;\n  }\n  const editor = el.monacoEditor;\n  if(!editor) {\n    ctx.triggerActionEvent(\"error\", \"Editor not yet initialized\")\n    return;\n  }\n  const codeAction = editor.getAction(action);\n  if(!codeAction) {\n    ctx.triggerActionEvent(\"error\", \"No action exist with name '\" + action + \"'. Allowed actions are: \" + editor.getSupportedActions().map((a) => a.id).join(\", \"))\n    return;\n  }\n\n  codeAction.run(args)\n}"}],"trigger":"click"}},"children":["yZ7D9Filq_w2XgzL52yW2"],"classes":{"dBViEH":{"formula":{"type":"value","value":true}}},"customProperties":{}},"C2ztPypJigHNYahz23c_U":{"type":"text","value":{"type":"value","value":"Attributes"}},"CmIktVJKq6L-ZtFgWrqD7":{"tag":"h3","type":"element","children":["kC1i_7zX-RyTPa47m2gho"],"classes":{"eQmeud":{"formula":{"type":"value","value":true}}},"customProperties":{}},"D2aIDiP5YhC6DjhjrFLXh":{"type":"text","value":{"type":"value","value":"Intro"}},"D5oe8xX_pbE-bG_OUcF61":{"tag":"tr","type":"element","children":["QanSliBK8QV9Uo1BOEffb","Osd70Bb7ndgfKMWtvFb7Z"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Dj6JZ0RzgtSAy18oZSPNs":{"tag":"h4","type":"element","children":["zfsSdGUB2b8moIGpNQqfr"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"DtPBnTl8KOk8fL7VVb7Yl":{"tag":"h4","type":"element","children":["lT2prz45W7ebxm_tEJNi3"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"E3knp8oZ3X8OmH8DPgNSN":{"type":"text","value":{"type":"value","value":"Fires whenever the content in the \"modified\"-editor is changed"}},"EGBMS57juo4PgWmQwU9OL":{"type":"text","value":{"type":"value","value":"Construction Options object parsed into the monaco editor. Refer to the monaco editor docs for more info."}},"EH0HcG75DBcnb_Fy5uAJd":{"type":"text","value":{"type":"value","value":"Arguments"}},"Ep-SxkJl1sgfSEd-sD6DN":{"type":"text","value":{"type":"value","value":"Events"}},"F2caE_OOLjbhUNVedEx-W":{"tag":"td","type":"element","children":["apCHtMOOf_C92xJ_QhGGZ"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"FgkhTHfyx80teKK769GZB":{"type":"text","value":{"type":"value","value":"Theme to be used for rendering. Available themes are: 'vs-dark' (default), 'vs', 'hc-black', 'hc-light'.\n"}},"H4L4-qYWVCIAN9Ehzwldr":{"tag":"h2","type":"element","children":["sw0h1xF3ZqfcsW-IqEId8"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"HPKc2MlBieotqxFYc0PIu":{"tag":"td","type":"element","children":["pv9ODK1EPAbb1AaqTCdb6"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"H_KVXy9SYtMvsj8a2P6ZB":{"type":"text","value":{"type":"value","value":"orig-value"}},"IAO0gRmy9yXKli9EyEdew":{"tag":"div","type":"element","children":["Dj6JZ0RzgtSAy18oZSPNs","6HOmzTI4e_XEKfsdZwpy-"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"IhjF8Z0vTvf-CfpUyrHDG":{"tag":"table","type":"element","children":["D5oe8xX_pbE-bG_OUcF61","sFHu2zlsAJK1Jqic8C7tk","spxyG_F7DsF1_vFCWn4uu","faSoS-hQKXYHyjGIUODYL","2ZCVX3MRieOIu7uaCiD5d","e0QfE2irLCUpuOQThAnoL"],"classes":{"bcLiyJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"JK2ftaogSZBSkdgxQa5Eb":{"tag":"tr","type":"element","children":["oTEZbvbFeurz8VX-PQVH-","wSKyBbAMEhM7lV26P2LVw"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"JYBbXGcC1WXkt0_JdUXEB":{"tag":"h2","type":"element","children":["NkN2mzS47TmzS3rHQDxQx"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"KSI2GAs2dkHQyXNkhXAi9":{"tag":"div","type":"element","children":["DtPBnTl8KOk8fL7VVb7Yl","mI1OdO5rFdiqTFyNq6wLC"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"KepuGQzicaLyMSoC576oP":{"tag":"h4","type":"element","children":["Ep-SxkJl1sgfSEd-sD6DN"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"KppR8vKeuNyfGIVk_3c__":{"tag":"td","type":"element","children":["FgkhTHfyx80teKK769GZB"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Lvr_F7oe5Y_Dk-Rx4ms-D":{"tag":"td","type":"element","children":["SOMftwZTHc5trmOLszX_b"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"MIPRgLM7Tjr343sVo7pzx":{"tag":"li","type":"element","children":["ys_eK2_TYKfrjrYXk-mQJ","UfMstDt8kan7ykoLayzbw","AJn8oLOshTvuSYKsazpU-","7fdfwaems7Galwfvx-8Hw","nJSZKCP9irTYS2m0JZA3_"],"classes":{"dlHwgC":{"formula":{"type":"value","value":true}}},"customProperties":{}},"MnmG8GBo8_Tkdw0oqpA7g":{"type":"text","value":{"type":"value","value":"The original value."}},"NDSkkqP92hrflOG9HeUqF":{"type":"text","value":{"type":"value","value":"default"}},"Nclfqx3gNKajWeqje3QOj":{"type":"text","value":{"type":"value","value":"error"}},"NkN2mzS47TmzS3rHQDxQx":{"type":"text","value":{"type":"value","value":"Actions"}},"Ocz0955gPBhgnA5gXkqXn":{"tag":"h2","type":"element","children":["D2aIDiP5YhC6DjhjrFLXh"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Opjh9Wy7lcanT0cLHVyG3":{"tag":"td","type":"element","children":["PJDZEHz65iGe7xUw3No1l"],"classes":{"dgpnZv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Osd70Bb7ndgfKMWtvFb7Z":{"tag":"td","type":"element","children":["MnmG8GBo8_Tkdw0oqpA7g"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"PJDZEHz65iGe7xUw3No1l":{"type":"text","value":{"type":"value","value":"\naction"}},"PaphPxaQAoguhAnnDSRAH":{"tag":"tr","type":"element","children":["B6gXFH9os8qPmymY_SxN-","HPKc2MlBieotqxFYc0PIu"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"PbEy1RfBgNENZXUVElQXd":{"type":"text","value":{"type":"value","value":"id"}},"PjfYp1rVsarR3HWh-RspH":{"type":"text","value":{"type":"value","value":"Fires whenever the editor looses focus"}},"Pt2os8tFbpRAwotBtRyUS":{"tag":"tr","type":"element","children":["jSob08TtouPPylKkz83Mz","fPkgFP55XGxz7CSGdFnGT"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Q3LnUxN0vCFY_thYpCMzH":{"type":"text","value":{"type":"value","value":"change"}},"QJISlk4d0MnUpMx4uon38":{"type":"text","value":{"type":"value","value":"Should match the id of the editor you want to run the command on. You can leave this empty if you only have one editor and the editor has an empty id as well."}},"QanSliBK8QV9Uo1BOEffb":{"tag":"td","type":"element","children":["H_KVXy9SYtMvsj8a2P6ZB"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"QozClqn4vLraoakHnLOeK":{"tag":"section","type":"element","children":["H4L4-qYWVCIAN9Ehzwldr","RpMEP3bYGiAf_VRNmjWiP"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"QsggGXCS67hlRA1u0HCEI":{"tag":"td","type":"element","children":["fX4BGlufgr_uJTpkkJkNf"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"RpMEP3bYGiAf_VRNmjWiP":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["d5R32V345MlGqEinOVxYQ","MIPRgLM7Tjr343sVo7pzx"],"classes":{"fBBdzh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"SIQYOQ5uBnpJFjehtcjDH":{"tag":"div","type":"element","children":["ZepMXnqWmgvqF2ItQT6ba","sDiwDkC_yV0fASHyxdNo3"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"SOMftwZTHc5trmOLszX_b":{"type":"text","value":{"type":"value","value":"Shown while editor is loading"}},"SjmHfnTO3SzU2onCsM3no":{"tag":"p","type":"element","children":["549kxYoVeCLCRyix9-XJ-"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"SrfAUt3VgLa8kKlN1wdOl":{"type":"text","value":{"type":"value","value":"Fires whenever the action cannot be performed. The error event should inform "}},"UBel_KwMiJoVH-mPHzgUP":{"tag":"td","type":"element","children":["weI4XVJwiot04WNiqPPcB"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"UC0AGFk_Y2p6NHWg1Iz93":{"type":"text","value":{"type":"value","value":"Events"}},"UXj7FH97Svp-ihtSTZtsl":{"tag":"td","type":"element","children":["k8Iumyuejwf3mUjfD-bqM"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"UfMstDt8kan7ykoLayzbw":{"tag":"p","type":"element","children":["aphEjCBuufleX4qDU96Fm"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Vqxf_8CW-icGEeuw3haqS":{"type":"text","value":{"type":"value","value":"Demo"}},"X4r0557SvsSbMwwtOaiZz":{"type":"text","value":{"type":"value","value":"blur"}},"X71mN--XZ6uIoT8x6B34-":{"type":"text","value":{"type":"value","value":"\"css\" | \"html\" | \"javascript\" | \"typescript\" | \"json\" - Default is \"javascript\""}},"XKD-su8UI7tuKS-LQk1Fi":{"type":"text","value":{"type":"value","value":"Link"}},"Y-CBPpovQcbMLFqP4YYRZ":{"tag":"tr","type":"element","children":["9oIx85CQbo4WLxfxbfEQO","ra6bYMgZnn9TDrbDw4UyR"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Y-GMgXzuQ5r17H_sNAIzJ":{"tag":"div","type":"element","children":["oc82lfoFHuW0XRSzcrMAE","63WxuvVpHZxtj6Ci0Hxf-"],"classes":{"eYYyhs":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Yh3AI9d9k9e1rA4RPw0m-":{"tag":"tr","type":"element","children":["-4qyT4kDwjO9hKEcL8NGa","QsggGXCS67hlRA1u0HCEI"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ZckFUNEJ-6FRuXWGSfhqf":{"type":"text","value":{"type":"value","value":"code-diff-editor"}},"ZepMXnqWmgvqF2ItQT6ba":{"tag":"h4","type":"element","children":["EH0HcG75DBcnb_Fy5uAJd"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Ztc9VXjZ5qxZUOWuu2k6d":{"tag":"td","type":"element","children":["zYXNmyFXPiDxqvkEUovCl"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"_YbteiYo4vYCp06TI7B_6":{"tag":"tr","type":"element","children":["Opjh9Wy7lcanT0cLHVyG3","eIdESqPPlBaYG1qiu1Az5"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"_yExy_vQkSjUbSwX8785e":{"tag":"td","type":"element","children":["sL-MRb9S9SQWbhaEMPREv"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ammryM0NkyewPaSP4E5T_":{"tag":"td","type":"element","children":["EGBMS57juo4PgWmQwU9OL","BDxkVibKh_JsvnuI6AC_b"],"classes":{"fuBNRp":{"formula":{"type":"value","value":true}}},"customProperties":{}},"apCHtMOOf_C92xJ_QhGGZ":{"type":"text","value":{"type":"value","value":"theme"}},"aphEjCBuufleX4qDU96Fm":{"type":"text","value":{"type":"value","value":"This component will show a diff between 2 values. It works very similar to the code-editor above with the only difference being that it takes 2 value arguments that is going to be diff'ed."}},"bEKW2lrV7sVhMySJjjZug":{"tag":"td","type":"element","children":["kdHwDaonomQG0kjbh0opH"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"bOFjWvUzS99RqjtqEf5Oo":{"type":"text","value":{"type":"value","value":"code-editor"}},"bdVX813ourWGALtmvHDX6":{"tag":"p","type":"element","children":["uhkdG54Xmn8ReHAiHtXza","1sfhkWSleY5piyHFmzV5X"],"classes":{"sahaH":{"formula":{"type":"value","value":true}}},"customProperties":{}},"c-xjypetoeCGEuwG6J-JP":{"type":"text","value":{"type":"value","value":"Fires whenever the content is modified"}},"cB9KxwCTyGCg0297Mjdyv":{"type":"text","value":{"type":"value","value":"modified-value"}},"d5R32V345MlGqEinOVxYQ":{"tag":"li","type":"element","children":["2x2URyCKk3z4UOQltAjF1","y8uuKBJkVjdEdcVPPT6px","2IQpny-nF4GKb5QxrEF9i","IAO0gRmy9yXKli9EyEdew","KSI2GAs2dkHQyXNkhXAi9"],"classes":{"dlHwgC":{"formula":{"type":"value","value":true}}},"customProperties":{}},"dPIDQY2NRCodcOF5VifV1":{"tag":"div","type":"element","children":["languageSelect","Y-GMgXzuQ5r17H_sNAIzJ","CmIktVJKq6L-ZtFgWrqD7","hf0iTGgbPsbTNhx5t1Rii"],"classes":{"ehVQZp":{"formula":{"type":"value","value":true}}},"customProperties":{}},"e0QfE2irLCUpuOQThAnoL":{"tag":"tr","type":"element","children":["AFW8VLzU4ITbgR1IU5uiR","leuGx3SW_FJ5knESviDEe"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"eHPw8hL9xMU_xa56tZBid":{"type":"text","value":{"type":"value","value":"value"}},"eIdESqPPlBaYG1qiu1Az5":{"tag":"td","type":"element","children":["0U8Sck98ScTG9wyNMRhhf"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"edbkaxnVHb9FVx2_ePhKF":{"type":"text","value":{"type":"value","value":"\"css\" | \"html\" | \"javascript\" | \"typescript\" | \"json\" - Default is \"javascript\""}},"fPkgFP55XGxz7CSGdFnGT":{"tag":"td","type":"element","children":["97AIeoMEojM4Jv-ILW6I6"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"fX4BGlufgr_uJTpkkJkNf":{"type":"text","value":{"type":"value","value":"The current value of the editor. Use ”\\n\" for line-breaks."}},"faSoS-hQKXYHyjGIUODYL":{"tag":"tr","type":"element","children":["8kawI76Hrf-MGZz4x14Pn","bEKW2lrV7sVhMySJjjZug"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"gKOdXbW-on_939JSdA1t-":{"tag":"div","type":"element","children":["jD-wKYaGpnUIkDvD7xK3c","bdVX813ourWGALtmvHDX6"],"classes":{"eozNhk":{"formula":{"type":"value","value":true}}},"customProperties":{}},"gSwPPLWjHE0r1yml5Xo3x":{"tag":"tr","type":"element","children":["sABkvojgL2raWpcWMmNKn","Lvr_F7oe5Y_Dk-Rx4ms-D"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"grs1LkMaeyrHJvlLN9aJo":{"tag":"li","type":"element","children":["uqK9yJqYhwff-LRv63bRW","SjmHfnTO3SzU2onCsM3no","SIQYOQ5uBnpJFjehtcjDH","4ngmTX8Hx2w94cNwLdwYO"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"gv58ubhBpIWoQxxy9RXwG":{"type":"text","value":{"type":"value","value":"Based on the Monaco Editor"}},"hAiowap_k1G9za12Hgi9w":{"tag":"table","type":"element","children":["gSwPPLWjHE0r1yml5Xo3x"],"classes":{"bcLiyJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"hVG2Qu2I9ihxg1FaW89ym":{"tag":"section","type":"element","children":["Ocz0955gPBhgnA5gXkqXn","8JMmh1JG6yvg9WglgEwJc"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"hf0iTGgbPsbTNhx5t1Rii":{"tag":"div","type":"element","children":["9ZDOZaHAZ-8nj7fpzvQ75","BsSWY3FQnCvmXKKe-UHNo"],"classes":{"eYYyhs":{"formula":{"type":"value","value":true}}},"customProperties":{}},"hfmarTXU9ZGAcNShDhsvg":{"tag":"tr","type":"element","children":["xpHiE7iidC_LPE-WjBjzR","6j_62LmhVd8p_ol4p_-ky"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ita-bUcp06rix1dYYOiNL":{"tag":"h4","type":"element","children":["5VXI10fDLyokFAt5usVY7"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"iuAZHelxE-cQT1w5wkgwU":{"type":"text","value":{"type":"value","value":"Shown while editor is loading"}},"iy9kQc9Z2kWt3pLAgIRr1":{"tag":"section","type":"element","children":["JYBbXGcC1WXkt0_JdUXEB","l-S2Thb2y4-72mG3jri4M"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"jD-wKYaGpnUIkDvD7xK3c":{"tag":"h3","type":"element","children":["lUPGFYkSWa1r-o8-U5uH1"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"jQLTpsm30HW6RNGWxJS62":{"tag":"table","type":"element","children":["vRTLYjE92r28e_eeAnwhb"],"classes":{"bcLiyJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"jSob08TtouPPylKkz83Mz":{"tag":"td","type":"element","children":["5KCJv04o3JdJ9UQD0R3HA"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"k8Iumyuejwf3mUjfD-bqM":{"type":"text","value":{"type":"value","value":"theme"}},"kC1i_7zX-RyTPa47m2gho":{"type":"text","value":{"type":"value","value":"Diff"}},"kO-Rg5G5RChh7_Gs1pg37":{"type":"text","value":{"type":"value","value":"Attributes"}},"kdHwDaonomQG0kjbh0opH":{"type":"text","value":{"type":"value","value":"Additional type definitions."}},"l-S2Thb2y4-72mG3jri4M":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["grs1LkMaeyrHJvlLN9aJo"],"classes":{"erbmxD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"lT2prz45W7ebxm_tEJNi3":{"type":"text","value":{"type":"value","value":"Slots"}},"lUPGFYkSWa1r-o8-U5uH1":{"type":"text","value":{"type":"value","value":"code-editor"}},"leuGx3SW_FJ5knESviDEe":{"tag":"td","type":"element","children":["BQ-n7wd8T4QYRaRpDGqdp","rCB8tMwDyNXYij1neBWy7"],"classes":{"fuBNRp":{"formula":{"type":"value","value":true}}},"customProperties":{}},"mI1OdO5rFdiqTFyNq6wLC":{"tag":"table","type":"element","children":["JK2ftaogSZBSkdgxQa5Eb"],"classes":{"bcLiyJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"mqwX_tRaHEvkKlYfjhYDW":{"tag":"td","type":"element","children":["SrfAUt3VgLa8kKlN1wdOl"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"nJSZKCP9irTYS2m0JZA3_":{"tag":"div","type":"element","children":["ita-bUcp06rix1dYYOiNL","hAiowap_k1G9za12Hgi9w"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"nN3IvkTPBqVdbZz4za5Q7":{"tag":"td","type":"element","children":["PbEy1RfBgNENZXUVElQXd"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"nqZSPEckHQjF8hyR7xqnD":{"tag":"td","type":"element","children":["Nclfqx3gNKajWeqje3QOj"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"oTEZbvbFeurz8VX-PQVH-":{"tag":"td","type":"element","children":["NDSkkqP92hrflOG9HeUqF"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"oc82lfoFHuW0XRSzcrMAE":{"name":"code-editor","type":"component","attrs":{"id":{"type":"value","value":"demo-1"},"value":{"path":["Variables","currentCode"],"type":"path"},"language":{"type":"path","path":["Variables","selectedLanguage"]},"lib-source":{"path":["Variables","Initial lib source"],"type":"path"},"construction-options":{"type":"object","arguments":[{"name":"minimap","formula":{"type":"object","arguments":[{"name":"enabled","formula":{"type":"value","value":false}}]}}]}},"customProperties":{}},"p9e8vtRJ2sk16A5DsVVBP":{"tag":"tr","type":"element","children":["F2caE_OOLjbhUNVedEx-W","KppR8vKeuNyfGIVk_3c__"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"pWJTjXAP9jyXUgHHT1yTg":{"type":"text","value":{"type":"value","value":"lib-source"}},"pv9ODK1EPAbb1AaqTCdb6":{"type":"text","value":{"type":"value","value":"Additional type definitions."}},"pxiDMUjfk7Q5Y0ejzEQjy":{"tag":"td","type":"element","children":["QJISlk4d0MnUpMx4uon38"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"qUZX5B_obx9JdrREoZr8I":{"tag":"main","type":"element","children":["hVG2Qu2I9ihxg1FaW89ym","616n7TVOO6f-PV1o3Ttcf","QozClqn4vLraoakHnLOeK","iy9kQc9Z2kWt3pLAgIRr1"],"classes":{"drWRwT":{"formula":{"type":"value","value":true}}},"customProperties":{}},"qzGEQXKRD6n3XmGYpLKFM":{"type":"text","value":{"type":"value","value":"language"}},"r3pGfnNLKHOT5tsPFAv0J":{"tag":"td","type":"element","children":["edbkaxnVHb9FVx2_ePhKF"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"rCB8tMwDyNXYij1neBWy7":{"tag":"a","type":"element","attrs":{"href":{"type":"value","value":"https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.IStandaloneDiffEditorConstructionOptions.html"},"target":{"type":"value","value":"_blank"},"data-prerender":{"type":"value","value":"moderate"}},"children":["XKD-su8UI7tuKS-LQk1Fi"],"classes":{"dpmcUT":{"formula":{"type":"value","value":true}}},"customProperties":{}},"rPritJtWLr5om5Mf7ZQl4":{"tag":"h2","type":"element","children":["Vqxf_8CW-icGEeuw3haqS"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ra6bYMgZnn9TDrbDw4UyR":{"tag":"td","type":"element","children":["PjfYp1rVsarR3HWh-RspH"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"sABkvojgL2raWpcWMmNKn":{"tag":"td","type":"element","children":["5Etyq68ELYvY1p-scopej"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"sDiwDkC_yV0fASHyxdNo3":{"tag":"table","type":"element","children":["9LbrfR1P6_QqbDCZfPb8f","_YbteiYo4vYCp06TI7B_6","Pt2os8tFbpRAwotBtRyUS"],"classes":{"bcLiyJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"sFHu2zlsAJK1Jqic8C7tk":{"tag":"tr","type":"element","children":["zamV4VNqlrhPFn1GdIQC6","8LbmkO-RQuCjpDF17i6FJ"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"sL-MRb9S9SQWbhaEMPREv":{"type":"text","value":{"type":"value","value":"construction-options"}},"spc925rZpGneL4d4Qr7gI":{"tag":"td","type":"element","children":["Q3LnUxN0vCFY_thYpCMzH"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"spxyG_F7DsF1_vFCWn4uu":{"tag":"tr","type":"element","children":["UBel_KwMiJoVH-mPHzgUP","1TBUE-8eDGgsB-k5kUMuf"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"sw0h1xF3ZqfcsW-IqEId8":{"type":"text","value":{"type":"value","value":"Components"}},"tWoBbUDkMkgLhks7CITnq":{"type":"text","value":{"type":"value","value":"Format document"}},"uhkdG54Xmn8ReHAiHtXza":{"type":"text","value":{"type":"value","value":"A code editor based on the Monaco Editor, powering tools such as vs-code and toddle's custom code editor. Use this component to build your own coding tools, using no-code!\n\n"}},"uqK9yJqYhwff-LRv63bRW":{"tag":"h3","type":"element","children":["ztX5kv7UyKx5iSrb_M8UQ"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"vRTLYjE92r28e_eeAnwhb":{"tag":"tr","type":"element","children":["spc925rZpGneL4d4Qr7gI","AHujgPv4gpDA-Q3COAeFl"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"wEPHtPu-10kQb4Y3JiXTK":{"tag":"table","type":"element","children":["Yh3AI9d9k9e1rA4RPw0m-","1_WPARSl5Mi58tGPbjrsM","PaphPxaQAoguhAnnDSRAH","p9e8vtRJ2sk16A5DsVVBP","9671QAJdfkRVxfWwyCPJF"],"classes":{"bcLiyJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"wSKyBbAMEhM7lV26P2LVw":{"tag":"td","type":"element","children":["iuAZHelxE-cQT1w5wkgwU"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"weI4XVJwiot04WNiqPPcB":{"type":"text","value":{"type":"value","value":"language"}},"xpHiE7iidC_LPE-WjBjzR":{"tag":"td","type":"element","children":["4TP_G5P2FGktiilCoyt74"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"y8uuKBJkVjdEdcVPPT6px":{"tag":"p","type":"element","children":["7c7x4U4dAOiSdB_EUmtk6"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"yZ7D9Filq_w2XgzL52yW2":{"type":"text","value":{"type":"value","value":"Format document"}},"ys_eK2_TYKfrjrYXk-mQJ":{"tag":"h3","type":"element","children":["ZckFUNEJ-6FRuXWGSfhqf"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"zLPUXTO4t1V8nXLsoLC5D":{"tag":"h4","type":"element","children":["C2ztPypJigHNYahz23c_U"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"zXnLaYJqFYeuwRTsGskqD":{"type":"text","value":{"type":"value","value":"lib-source"}},"zYXNmyFXPiDxqvkEUovCl":{"type":"text","value":{"type":"value","value":"Theme to be used for rendering. Available themes are: 'vs-dark' (default), 'vs', 'hc-black', 'hc-light'.\n"}},"zamV4VNqlrhPFn1GdIQC6":{"tag":"td","type":"element","children":["cB9KxwCTyGCg0297Mjdyv"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"zfsSdGUB2b8moIGpNQqfr":{"type":"text","value":{"type":"value","value":"Events"}},"ztX5kv7UyKx5iSrb_M8UQ":{"type":"text","value":{"type":"value","value":"runCodeEditorAction"}},"languageSelect":{"type":"element","tag":"select","attrs":{"value":{"type":"path","path":["Variables","selectedLanguage"]}},"children":["languageOption"],"events":{"change":{"trigger":"change","actions":[{"type":"TriggerWorkflow","workflow":"changeLanguage","parameters":{"language":{"formula":{"type":"path","path":["Event","target","value"]}}}}]}},"classes":{"fjTQed":{"formula":{"type":"value","value":true}}},"customProperties":{}},"languageOption":{"type":"element","tag":"option","attrs":{"value":{"type":"path","path":["ListItem","Item"]},"selected":{"type":"function","name":"@toddle/equals","arguments":[{"name":"First","formula":{"type":"path","path":["ListItem","Item"]}},{"name":"Second","formula":{"type":"path","path":["Variables","selectedLanguage"]}}],"display_name":"Equals"}},"children":["languageOptionText"],"repeat":{"type":"path","path":["Variables","languages"]},"classes":{"eoYCaz":{"formula":{"type":"value","value":true}}},"customProperties":{}},"languageOptionText":{"type":"text","value":{"type":"path","path":["ListItem","Item"]}}},"route":{"path":[],"query":{},"info":{"title":{"formula":{"type":"value","value":"Code editor"}},"description":{"formula":{"type":"value","value":"A code editor for nordcraft"}}}},"onLoad":{"actions":[],"trigger":"load"},"functions":{},"variables":{"Initial value":{"initialValue":{"type":"value","value":"/**\n ** @param {Args} args\n ** @param {Ctx} ctx\n */\n\nfunction main (args, ctx) {\n let array = args.text.split(\"\\n\")\n}"}},"Modified value":{"initialValue":{"type":"value","value":"/**\n ** @param {Args} args\n ** @param {Ctx} ctx\n */\n\nfunction main (args, ctx) {\n let array = args.text.split(\".\")\n}"}},"Initial lib source":{"initialValue":{"type":"value","value":"interface Args {\n  key: string;\n  value: number;\n}\n\ninterface Ctx {\n  sessionID: string;\n  userID: number;\n}"}},"languages":{"initialValue":{"type":"array","arguments":[{"formula":{"type":"value","value":"css"}},{"formula":{"type":"value","value":"javascript"}},{"formula":{"type":"value","value":"typescript"}},{"formula":{"type":"value","value":"json"}},{"formula":{"type":"value","value":"plaintext"}},{"formula":{"type":"value","value":"pgsql"}},{"formula":{"type":"value","value":"markdown"}}]}},"languageExamples":{"initialValue":{"type":"object","arguments":[{"name":"css","formula":{"type":"value","value":"\n.button {\n  background: red;\n}"}},{"formula":{"type":"value","value":"\n/**\n * @param {Args} args\n * @param {Ctx} ctx\n */\n\nfunction main (args, ctx) {\n let array = args.text.split(\"\\\\n\")\n}"},"name":"javascript"},{"formula":{"type":"value","value":"\nfunction add(a: number, b: number): number {\n  return a + b;\n}"},"name":"typescript"},{"formula":{"type":"value","value":"\n{\n  \"key\": \"value\"\n}"},"name":"json"},{"formula":{"type":"value","value":"Hello world"},"name":"plaintext"},{"formula":{"type":"value","value":"SELECT * FROM users;"},"name":"pgsql"},{"formula":{"type":"value","value":"\n# Hello\n\nThis is **markdown**."},"name":"markdown"}]}},"selectedLanguage":{"initialValue":{"type":"value","value":"javascript"}},"currentCode":{"initialValue":{"type":"value","value":"/**\n * @param {Args} args\n * @param {Ctx} ctx\n */\n\nfunction main (args, {}) {\n  const array = args.text.split(\"/\")\n  return array\n}"}}},"workflows":{"changeLanguage":{"name":"changeLanguage","parameters":[{"name":"language"}],"actions":[{"type":"SetVariable","variable":"selectedLanguage","data":{"type":"path","path":["Parameters","language"]}},{"type":"SetVariable","variable":"currentCode","data":{"type":"function","name":"@toddle/get","arguments":[{"formula":{"type":"path","path":["Variables","languageExamples"]},"name":"Object"},{"formula":{"type":"path","path":["Parameters","language"]},"name":"Path"}],"display_name":"Get"}}]}}},"components":[{"name":"code-diff-editor","nodes":{"root":{"tag":"code-diff-editor","type":"element","children":["eOEHI_zh5o6L_OoySB1oq","1getquyfVkuj6HdQtp-Lp","K_Y8LxIK9AFK8KMHGQrIt","pAyOV7pl_MOXfSsSDQHH2","LS79U7Y8cE7nVmEEPqUaa"],"classes":{"eDdthD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"1getquyfVkuj6HdQtp-Lp":{"tag":"script","type":"element","attrs":{"src":{"type":"value","value":"https://cdn.nordcraft.com/npm/monaco-editor%400.55.1/min/vs/loader.js"}},"customProperties":{}},"K_Y8LxIK9AFK8KMHGQrIt":{"tag":"template","type":"element","attrs":{"id":{"type":"value","value":"editor-template"}},"customProperties":{}},"LS79U7Y8cE7nVmEEPqUaa":{"tag":"script","type":"element","attrs":{"type":{"type":"value","value":"module"}},"children":["ls1CTQk3q91ii4kNhEpMz"],"customProperties":{}},"eOEHI_zh5o6L_OoySB1oq":{"tag":"link","type":"element","attrs":{"rel":{"type":"value","value":"stylesheet"},"href":{"type":"value","value":"https://cdn.nordcraft.com/npm/monaco-editor@0.55.1/dev/vs/editor/editor.main.css"},"type":{"type":"value","value":"text/css"},"data-name":{"type":"value","value":"vs/editor/editor.main"}},"customProperties":{}},"fogklKX2VJO-XB-o6_2vE":{"type":"slot"},"ls1CTQk3q91ii4kNhEpMz":{"type":"text","value":{"type":"value","value":"class MonacoEditor extends HTMLElement {\n  constructor() {\n    super();\n    this.initMonaco = this.initMonaco.bind(this);\n  }\n\n  connectedCallback() {\n    const shadow = this.attachShadow({ mode: \"closed\" });\n\n    // Copy over editor styles\n    const style = shadow.host\n      .getRootNode()\n      .querySelector(\n        \"link[rel='stylesheet'][data-name='vs/editor/editor.main']\"\n      );\n    shadow.appendChild(style.cloneNode(true));\n\n    const container = document.createElement(\"div\");\n    container.style = \"width: 100%; height: 100%; position: absolute;\";\n\n    shadow.appendChild(container);\n\n    const throttleRequireLoaded = (callback) => {\n      if (window.require) {\n        callback();\n      } else {\n        setTimeout(() => throttleRequireLoaded(callback), 100);\n      }\n    };\n    throttleRequireLoaded(() => this.initMonaco(container));\n  }\n\n  disconnectedCallback() {\n    this.monacoEditor?.dispose();\n  }\n\n  static get observedAttributes() {\n    return [\n      \"data-orig-value\",\n      \"data-modified-value\",\n      \"data-lib-source\",\n      \"data-language\",\n      \"data-theme\",\n    ];\n  }\n\n  attributeChangedCallback(name, oldValue, newValue) {\n    if (!this.monacoEditor) {\n      return;\n    }\n\n    switch (name) {\n      case \"data-orig-value\":\n        // Short path if the value hasn't changed\n        if (newValue === this.monacoEditor.getValue()) {\n          return;\n        }\n\n        // To support live collaboration, we need to keep cursor position and selection\n        const origCursorPosition = this.monacoEditor.getPosition();\n        const origSelection = this.monacoEditor.getSelection();\n        this.setupValues(\n          newValue,\n          this.getAttribute(\"data-modified-value\") || \"\"\n        );\n        this.monacoEditor.setPosition(origCursorPosition);\n        this.monacoEditor.setSelection(origSelection);\n        break;\n      case \"data-modified-value\":\n        // Short path if the value hasn't changed\n        if (newValue === this.monacoEditor.getValue()) {\n          return;\n        }\n\n        // To support live collaboration, we need to keep cursor position and selection\n        const modifiedCursorPosition = this.monacoEditor.getPosition();\n        const modifiedSelection = this.monacoEditor.getSelection();\n        this.setupValues(this.getAttribute(\"data-orig-value\") || \"\", newValue);\n        this.monacoEditor.setPosition(modifiedCursorPosition);\n        this.monacoEditor.setSelection(modifiedSelection);\n        break;\n      case \"data-lib-source\":\n        this.updateLibSource(newValue);\n        break;\n      case \"data-language\":\n        monaco.editor.setModelLanguage(\n          this.monacoEditor.getModel(),\n          newValue || \"javascript\"\n        );\n        break;\n      case \"data-theme\":\n        monaco.editor.setTheme(newValue);\n        break;\n    }\n  }\n\n  updateLibSource(libSource) {\n    if (!libSource) {\n      return;\n    }\n\n    var libUri = \"ts:filename/lib.d.ts\";\n    monaco.languages.typescript.javascriptDefaults.setExtraLibs([\n      {\n        content: libSource,\n        uri: libUri,\n      },\n    ]);\n    // When resolving definitions and references, the editor will try to use created models.\n    // Creating a model for the library allows \"peek definition/references\" commands to work with the library.\n    if (monaco.editor.getModel(monaco.Uri.parse(libUri))) {\n      return;\n    }\n\n    monaco.editor.createModel(\n      libSource,\n      \"typescript\",\n      monaco.Uri.parse(libUri)\n    );\n  }\n\n  setupValues(orig, modified) {\n    this.monacoEditor.setModel({\n      original: monaco.editor.createModel(orig, this.getLanguage()),\n      modified: monaco.editor.createModel(modified, this.getLanguage()),\n    });\n  }\n\n  getLanguage() {\n    return this.getAttribute(\"data-language\") || \"javascript\";\n  }\n\n  setupEvents() {\n    this.monacoEditor?.onDidUpdateDiff(() => {\n      this.dispatchEvent(\n        new CustomEvent(\"change\", {\n          detail: {\n            original: this.monacoEditor?.getModel().original.getValue(),\n            modified: this.monacoEditor?.getModel().modified.getValue(),\n          },\n        })\n      );\n    });\n  }\n\n  initMonaco(container) {\n    window.require.config({\n      paths: { vs: \"https://cdn.nordcraft.com/npm/monaco-editor@0.55.1/min/vs\" },\n    });\n    window.require([\"vs/editor/editor.main\"], () => {\n      executeWithoutToddleCssResets(() => {\n        const language = this.getLanguage();\n        const constructionOptions = JSON.parse(this.getAttribute(\"data-construction-options\") || \"{}\")\n        const defaultConstructionOptions = {\n          automaticLayout: true,\n          theme: this.getAttribute(\"data-theme\") || \"vs-dark\", // Default theme\n          stickyScroll: {\n            enabled: false,\n          },\n          lightbulb: {\n            enabled: true,\n          },\n          contextmenu: false,\n          compactMode: true,\n        };\n        if ([\"javascript\", \"typescript\"].includes(language)) {\n          monaco.languages.typescript.javascriptDefaults.setCompilerOptions({\n            target: monaco.languages.typescript.ScriptTarget.ESNext,\n            allowNonTsExtensions: true,\n            allowJs: true,\n            checkJs: true,\n          });\n          if (this.hasAttribute(\"data-lib-source\")) {\n            this.updateLibSource(this.getAttribute(\"data-lib-source\"));\n          }\n        }\n        this.monacoEditor = monaco.editor.createDiffEditor(container, {\n          ...defaultConstructionOptions,\n          ...constructionOptions,\n        });\n        this.setupValues(\n          this.getAttribute(\"data-orig-value\") || \"\",\n          this.getAttribute(\"data-modified-value\") || \"\"\n        );\n        this.setupEvents()\n      });\n    });\n  }\n}\n\nif (!customElements.get(\"monaco-diff-editor\")) {\n  customElements.define(\"monaco-diff-editor\", MonacoEditor);\n}\n\nfunction executeWithoutToddleCssResets(callback) {\n  const style = document.createElement(\"style\");\n  style.innerHTML = `\n    body > div:not(#App), body > div:not(#App) * {\n      display: revert;\n    }`;\n  document.head.appendChild(style);\n  callback();\n  document.head.removeChild(style);\n}\n"}},"pAyOV7pl_MOXfSsSDQHH2":{"tag":"monaco-diff-editor","type":"element","attrs":{"data-id":{"path":["Attributes","id"],"type":"path"},"data-theme":{"name":"@toddle/defaultTo","type":"function","arguments":[{"name":"0","type":{"type":"Any"},"formula":{"name":"@toddle/find","type":"function","arguments":[{"name":"Array","type":{"type":"Array"},"formula":{"type":"array","arguments":[{"Name":0,"formula":{"type":"value","value":"vs"}},{"Name":0,"formula":{"type":"value","value":"vs-dark"}},{"Name":0,"formula":{"type":"value","value":"hc-black"}},{"Name":0,"formula":{"type":"value","value":"hc-light"}}]}},{"name":"Formula","type":{"type":"Formula"},"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Args","item"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"path":["Attributes","theme"],"type":"path"}}],"display_name":"Equals"},"isFunction":true}],"display_name":"Find"}},{"name":"1","type":{"type":"Any"},"formula":{"type":"value","value":"vs-dark"}}],"display_name":"Default to","variableArguments":true},"data-language":{"path":["Attributes","language"],"type":"path"},"data-lib-source":{"path":["Attributes","lib-source"],"type":"path"},"data-orig-value":{"path":["Attributes","orig-value"],"type":"path"},"data-modified-value":{"path":["Attributes","modified-value"],"type":"path"},"data-construction-options":{"name":"@toddle/encodeJSON","type":"function","arguments":[{"name":"Data","type":{"type":"Any"},"formula":{"path":["Attributes","construction-options"],"type":"path"}},{"name":"Indent","type":{"type":"Number"},"formula":{"type":"value","value":2}}],"display_name":"Encode JSON"}},"events":{"change":{"actions":[{"data":{"name":"@toddle/get","type":"function","arguments":[{"name":"Object","type":{"type":"Union","types":[{"type":"Object"},{"type":"Array"},{"type":"String"}]},"formula":{"path":["Event"],"type":"path"}},{"name":"Path","type":{"type":"Union","types":[{"type":"Array","ofType":{"type":"String"}},{"type":"String"},{"type":"Number"}]},"formula":{"type":"value","value":"detail"}}],"display_name":"Get"},"type":"TriggerEvent","event":"change"}],"trigger":"change"}},"children":["fogklKX2VJO-XB-o6_2vE"],"classes":{"eQFxmR":{"formula":{"type":"value","value":true}}},"customProperties":{}}},"events":[{"name":"change"}],"onLoad":{"actions":[],"trigger":"Load"},"version":2,"exported":true,"attributes":{"id":{"name":"id"},"theme":{"name":"theme"},"language":{"name":"language"},"lib-source":{"name":"lib-source"},"orig-value":{"name":"orig-value"},"modified-value":{"name":"modified-value"},"construction-options":{"name":"construction-options"}}},{"name":"code-editor","nodes":{"root":{"tag":"code-editor","type":"element","children":["LUGAYism7WxKZgfFaMa9l","Pe0VYXm5NHfrc3P8SyMiq","pNhSwEu51sMYhf-4yidhW","tUc4UtDs42rI7G_vE3yHM","E2jxAtnFFiNkEJzUbaVTS"],"classes":{"eDdthD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"4fkafjaUlt1CP6FTlDtsQ":{"type":"slot"},"Bbg3908P95cNxpPoyHWLH":{"type":"text","value":{"type":"value","value":"class MonacoEditor extends HTMLElement {\n  constructor() {\n    super();\n    this.initMonaco = this.initMonaco.bind(this);\n  }\n\n  connectedCallback() {\n    const shadow = this.attachShadow({ mode: \"closed\" });\n\n    // Copy over editor styles\n    const style = shadow.host.getRootNode().querySelector(\n      \"link[rel='stylesheet'][data-name='vs/editor/editor.main']\"\n    );\n    shadow.appendChild(style.cloneNode(true));\n\n    const container = document.createElement(\"div\");\n    container.style = \"width: 100%; height: 100%; position: absolute;\";\n\n    shadow.appendChild(container);\n\n    const throttleRequireLoaded = (callback) => {\n      if (window.require) {\n        callback();\n      } else {\n        setTimeout(() => throttleRequireLoaded(callback), 100);\n      }\n    };\n    throttleRequireLoaded(() => this.initMonaco(container));\n  }\n\n  disconnectedCallback() {\n    this.monacoEditor?.dispose();\n  }\n\n  static get observedAttributes() {\n    return [\"data-value\", \"data-lib-source\", \"data-language\", \"data-theme\"];\n  }\n\n  attributeChangedCallback(name, oldValue, newValue) {\n    if (!this.monacoEditor) {\n      return;\n    }\n\n    switch (name) {\n      case \"data-value\":\n        // Short path if the value hasn't changed\n        if (newValue === this.monacoEditor.getValue()) {\n          return;\n        }\n\n        // To support live collaboration, we need to keep cursor position and selection\n        const cursorPosition = this.monacoEditor.getPosition();\n        const selection = this.monacoEditor.getSelection();\n        this.monacoEditor.setValue(newValue);\n        this.monacoEditor.setPosition(cursorPosition);\n        this.monacoEditor.setSelection(selection);\n        break;\n      case \"data-lib-source\":\n        this.updateLibSource(newValue);\n        break;\n      case \"data-language\":\n        monaco.editor.setModelLanguage(\n          this.monacoEditor.getModel(),\n          newValue || \"javascript\"\n        );\n        break;\n      case \"data-theme\":\n        monaco.editor.setTheme(newValue);\n        break;\n    }\n  }\n\n  updateLibSource(libSource) {\n    if (!libSource) {\n      return;\n    }\n\n    var libUri = \"ts:filename/lib.d.ts\";\n    monaco.languages.typescript.javascriptDefaults.setExtraLibs([\n      {\n        content: libSource,\n        uri: libUri,\n      },\n    ]);\n    // When resolving definitions and references, the editor will try to use created models.\n    // Creating a model for the library allows \"peek definition/references\" commands to work with the library.\n    if (monaco.editor.getModel(monaco.Uri.parse(libUri))) {\n      return;\n    }\n\n    monaco.editor.createModel(\n      libSource,\n      \"typescript\",\n      monaco.Uri.parse(libUri)\n    );\n  }\n\n  setupEvents() {\n    this.monacoEditor?.onDidChangeModelContent(() => {\n      this.dispatchEvent(\n        new CustomEvent(\"change\", {\n          detail: this.monacoEditor?.getValue(),\n        })\n      );\n    });\n    this.monacoEditor?.onDidBlurEditorText(() => {\n      this.dispatchEvent(new CustomEvent(\"blur\"));\n    });\n  }\n\n  initMonaco(container) {\n    window.require.config({\n      paths: { vs: \"https://cdn.nordcraft.com/npm/monaco-editor@0.55.1/min/vs\" },\n    });\n    window.require([\"vs/editor/editor.main\"], () => {\n      executeWithoutToddleCssResets(() => {\n        const language = this.getAttribute(\"data-language\") || \"javascript\";\n        const value = (this.getAttribute(\"data-value\") || \"\")\n        const theme = this.getAttribute(\"data-theme\") || \"vs-dark\" // Default theme\n        const constructionOptions = JSON.parse(this.getAttribute(\"data-construction-options\") || \"{}\")\n        const defaultConstructionOptions = {\n          value,\n          language,\n          automaticLayout: true,\n          theme,\n          stickyScroll: {\n            enabled: false\n          },\n          lightbulb: {\n            enabled: true,\n          },\n          contextmenu: false,\n        };\n        if ([\"javascript\", \"typescript\"].includes(language)) {\n          monaco.languages.typescript.javascriptDefaults.setCompilerOptions({\n            target: monaco.languages.typescript.ScriptTarget.ESNext,\n            allowNonTsExtensions: true,\n            allowJs: true,\n            checkJs: true,\n          });\n          if (this.hasAttribute(\"data-lib-source\")) {\n            this.updateLibSource(\n              this.getAttribute(\"data-lib-source\")\n            );\n          }\n        }\n        this.monacoEditor = monaco.editor.create(container, {\n          ...defaultConstructionOptions,\n          ...constructionOptions,\n        });\n        this.setupEvents();\n      });\n    });\n  }\n}\n\nif (!customElements.get(\"monaco-editor\")) {\n  customElements.define(\"monaco-editor\", MonacoEditor);\n}\n\nfunction executeWithoutToddleCssResets(callback) {\n  const style = document.createElement(\"style\");\n  style.innerHTML = `\n    body > div:not(#App), body > div:not(#App) * {\n      display: revert;\n    }`;\n  document.head.appendChild(style);\n  callback();\n  document.head.removeChild(style);\n}\n"}},"E2jxAtnFFiNkEJzUbaVTS":{"tag":"script","type":"element","attrs":{"type":{"type":"value","value":"module"}},"children":["Bbg3908P95cNxpPoyHWLH"],"customProperties":{}},"LUGAYism7WxKZgfFaMa9l":{"tag":"link","type":"element","attrs":{"rel":{"type":"value","value":"stylesheet"},"href":{"type":"value","value":"https://cdn.nordcraft.com/npm/monaco-editor%400.55.1/dev/vs/editor/editor.main.css"},"type":{"type":"value","value":"text/css"},"data-name":{"type":"value","value":"vs/editor/editor.main"}},"customProperties":{}},"Pe0VYXm5NHfrc3P8SyMiq":{"tag":"script","type":"element","attrs":{"src":{"type":"value","value":"https://cdn.nordcraft.com/npm/monaco-editor%400.55.1/min/vs/loader.js"}},"customProperties":{}},"pNhSwEu51sMYhf-4yidhW":{"tag":"template","type":"element","attrs":{"id":{"type":"value","value":"editor-template"}},"customProperties":{}},"tUc4UtDs42rI7G_vE3yHM":{"tag":"monaco-editor","type":"element","attrs":{"data-id":{"path":["Attributes","id"],"type":"path"},"data-theme":{"name":"@toddle/defaultTo","type":"function","arguments":[{"name":"0","type":{"type":"Any"},"formula":{"name":"@toddle/find","type":"function","arguments":[{"name":"Array","type":{"type":"Array"},"formula":{"type":"array","arguments":[{"Name":0,"formula":{"type":"value","value":"vs"}},{"Name":0,"formula":{"type":"value","value":"vs-dark"}},{"Name":0,"formula":{"type":"value","value":"hc-black"}},{"Name":0,"formula":{"type":"value","value":"hc-light"}}]}},{"name":"Formula","type":{"type":"Formula"},"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Args","item"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"path":["Attributes","theme"],"type":"path"}}],"display_name":"Equals"},"isFunction":true}],"display_name":"Find"}},{"name":"1","type":{"type":"Any"},"formula":{"type":"value","value":"vs-dark"}}],"display_name":"Default to","variableArguments":true},"data-value":{"path":["Attributes","value"],"type":"path"},"data-language":{"path":["Attributes","language"],"type":"path"},"data-lib-source":{"path":["Attributes","lib-source"],"type":"path"},"data-construction-options":{"name":"@toddle/encodeJSON","type":"function","arguments":[{"name":"Data","type":{"type":"Any"},"formula":{"path":["Attributes","construction-options"],"type":"path"}},{"name":"Indent","type":{"type":"Number"},"formula":{"type":"value","value":2}}],"display_name":"Encode JSON"}},"events":{"blur":{"actions":[{"type":"Switch","cases":[{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"TriggerEvent","event":"blur"}],"condition":{"name":"@toddle/get","type":"function","label":"Is trusted","arguments":[{"name":"Object","type":{"type":"Union","types":[{"type":"Object"},{"type":"Array"},{"type":"String"}]},"formula":{"path":["Event"],"type":"path","label":null}},{"name":"Path","type":{"type":"Union","types":[{"type":"Array","ofType":{"type":"String"}},{"type":"String"},{"type":"Number"}]},"formula":{"type":"value","value":"isTrusted"}}],"display_name":"Get"}}],"default":{"actions":[]}}],"trigger":"blur"},"change":{"actions":[{"data":{"name":"@toddle/get","type":"function","arguments":[{"name":"Object","type":{"type":"Union","types":[{"type":"Object"},{"type":"Array"},{"type":"String"}]},"formula":{"path":["Event"],"type":"path"}},{"name":"Path","type":{"type":"Union","types":[{"type":"Array","ofType":{"type":"String"}},{"type":"String"},{"type":"Number"}]},"formula":{"type":"value","value":"detail"}}],"display_name":"Get"},"type":"TriggerEvent","event":"change"}],"trigger":"change"}},"children":["4fkafjaUlt1CP6FTlDtsQ"],"classes":{"eQFxmR":{"formula":{"type":"value","value":true}}},"customProperties":{}}},"events":[{"name":"change"},{"name":"blur"}],"version":2,"exported":true,"attributes":{"id":{"name":"id"},"theme":{"name":"theme"},"value":{"name":"value"},"language":{"name":"language"},"lib-source":{"name":"lib-source"},"construction-options":{"name":"construction-options"}}}]}